package com.yue.design.decorator;

public class EggDecorator extends PanCakeDecorator{
    public EggDecorator(PanCake panCake) {
        super(panCake);
    }

    @Override
    String getMsg() {
        return super.getMsg()+"+1个鸡蛋";
    }

    @Override
    int getPrice() {
        return super.getPrice()+1;
    }
}
